package com.example.blog.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.blog.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.blog.entity.dto.comment.AddCommentDTO;
import com.example.blog.entity.dto.comment.PageQueryDTO;
import com.example.blog.entity.vo.comment.CommentDetailInfoVO;
import com.example.blog.entity.vo.comment.CommentListVO;

import java.util.List;

/**
 * <p>
 * 评论表 服务类
 * </p>
 *
 * @author wlh
 * @since 2024-01-10
 */
public interface CommentService extends IService<Comment> {

    Long getNewCountByUser(Long userId);

    Long add(AddCommentDTO addCommentDTO);

    void del(Long id);

    Page<CommentDetailInfoVO> pageList(PageQueryDTO pageQueryDTO);

    Page<CommentListVO> backPage(Integer current, Integer size, String content);

    List<CommentListVO> newComment();

    void read();
}
